package com.creditnet.bmc.platform.service;

import com.creditnet.bmc.platform.domain.DeptDO;
import com.creditnet.bmc.platform.domain.Tree;

import java.util.List;
import java.util.Map;

/**
 * Created by bjmaozhengwei on 2018/4/1.
 */
public interface DeptService {
    DeptDO get(Long deptId);

    List<DeptDO> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(DeptDO sysDept);

    int update(DeptDO sysDept);

    int remove(Long deptId);

    int batchRemove(Long[] deptIds);

    Tree<DeptDO> getTree();

    boolean checkDeptHasUser(Long deptId);
}

